package com.zhkj.txg.module.member.adapter

import android.widget.ImageView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.zhkj.txg.R
import com.zhkj.txg.module.member.entity.InviteEntity
import com.zhkj.txg.utils.ImageUtils

class MemberInviteAdapter : BaseQuickAdapter<InviteEntity, BaseViewHolder>(R.layout.item_member_invite),
    LoadMoreModule {
    override fun convert(helper: BaseViewHolder, item: InviteEntity) {
        val imageView = helper.setText(R.id.tvMemberInvite, item.nickname).getView<ImageView>(R.id.ivMemberInvite)
        item.avatar?.let { ImageUtils.loadCircleImage(context, imageView, it) }
    }
}